Skip to content

Migrate from ReflectiveInjector (deprecated) to StaticInjector #1868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 28, 2019

Conversation

edusperoni
Copy link
Collaborator

PR Checklist

Failing tests are not related to this change (convert string to dates). For some reason the demo app was failing to launch for me with "Application already started"

What is the current behavior?

ReflectiveInjector is being used to create components. This was deprecated in Angular 5 for being slow.

parentInjector is also deprecated (angular/angular#25174), so it has been replaced by injector

What is the new behavior?

Use StaticInjector and injector to create the modal components.

Possibly related to #1719

@cla-bot cla-bot bot added the cla: yes label Jun 18, 2019
@VladimirAmiorkov
Copy link
Contributor

test

@VladimirAmiorkov VladimirAmiorkov self-assigned this Jun 21, 2019
@VladimirAmiorkov
Copy link
Contributor

test

@zbranzov zbranzov merged commit 5042e08 into NativeScript:master Jun 28, 2019
VladimirAmiorkov pushed a commit that referenced this pull request Jun 28, 2019
* chore: bump version

* Update zone.js peer dependency

* update zone.js in all apps

* Make repo apps compatible with `--bundle` (#1857)

* chore: upgrade app to latest versions and webpack

* chore: fix incorrect temlateUrl in component
chore: update karma config for latest CLI beta 6.0.0

* chore: make `router-tab-view` example webpack compatible

* chore: make `nested-router-tab-view` example webpack compatible

* chore: fix lazy loaded component not loading

* chore: make `modal-navigation-ng` example webpack compatible

* chore: add webpack config due to issue in CLI that disregards the `nsconfig.json`

* chore: update test app with latest deps and remove not used d.ts

* chore: update karma config

* chore: resolve issue caused by overrding `global.__extends `

* chore: update Angular deps

* chore: update `nativescript-dev-webpack` to next

* refactor: unit-test configs

* test: update webpack config

* refactor: remove deprecated API usage (#1874)

* tests: mocha reporter and include ts files (#1875)

* Migrate from ReflectiveInjector (deprecated) to StaticInjector (#1868)

* chore: migrate to StaticInjector

* chore: replace parentInjector in detached-loader

* release: cut the 8.0.2 release

* chore: update version

* chore: update CHANGELOG for 8.0.2
zbranzov pushed a commit that referenced this pull request Jul 5, 2019
* chore: bump version

* Update zone.js peer dependency

* update zone.js in all apps

* Make repo apps compatible with `--bundle` (#1857)

* chore: upgrade app to latest versions and webpack

* chore: fix incorrect temlateUrl in component
chore: update karma config for latest CLI beta 6.0.0

* chore: make `router-tab-view` example webpack compatible

* chore: make `nested-router-tab-view` example webpack compatible

* chore: fix lazy loaded component not loading

* chore: make `modal-navigation-ng` example webpack compatible

* chore: add webpack config due to issue in CLI that disregards the `nsconfig.json`

* chore: update test app with latest deps and remove not used d.ts

* chore: update karma config

* chore: resolve issue caused by overrding `global.__extends `

* chore: update Angular deps

* chore: update `nativescript-dev-webpack` to next

* refactor: unit-test configs

* test: update webpack config

* refactor: remove deprecated API usage (#1874)

* tests: mocha reporter and include ts files (#1875)

* Migrate from ReflectiveInjector (deprecated) to StaticInjector (#1868)

* chore: migrate to StaticInjector

* chore: replace parentInjector in detached-loader

* feat(tabs): register tabs elements (#1883)

* feat(tabs): register tabs elements

* feat(tests-app-ng): add tabs component

* chore: fix android28 animation tests (#1885)

* chore: retry a flaky test on failure (#1886)

* release: cut the 8.0.2 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants